<h1>Forums List _ <%= SITE_NAME%></h1>

<div id="sub_nav">
  <%= link_to_out "Create a new forum",new_forum_path,{:title  => "Create a new forum"},{:width =>500,:heigth => 600} %>
</div>
<div id="new_forum" class="hidden">
  <%#= render :partial => 'form' %>
</div>


<div id="forum_list_header">
  <div class="last_post">Last Post</div>
  <div class="info">Forum</div>
</div>

<ul id="forums_list">
  <%#= render :partial => 'forum', :collection => @forums%>
	<% for forum in @forums -%>
		<li id="forum_<%= forum.id %>" class="forum">
			<div id='last_post'>Nothing</div>
			<div class='info'>
				<h2><%= link_to h(forum.name), forum_path(forum) %>	</h2>
				<%#=sanitize textilize(forum.description) %><br/>
			    
			</div>
		</li>
	<%end -%>
</ul>
<div id="no_forums_message" style="display: <%= @forums.empty? ? 'block' : 'none' %>">
  No forums exist at this time.
</div>
<br />
<%= sortable_element('forums_list', :url => {:action => :update_positions}) %>
Drag forum rows to reorder.<br/>